from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Column, Integer, String

db = SQLAlchemy()


class Book(db.Model):
    id = Column(Integer, primary_key=True)
    author = Column(String(30), default='未知')
    title = Column(String(50), nullable=False)
